import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 服务套餐主查询
export const getAllList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/query`, { params });

// 车系下拉列表
export const findProjectSeriesList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/querySeries`, { params });
// 车型
export const findProjectModelList = (SERIES_ID, params) => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/queryModel/${SERIES_ID}`, { params });
// 项目信息查询
export const queryLabour = (PACKAGE_ID, params) => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/queryLabour/${PACKAGE_ID}`, { params });
// 备件信息查询
export const queryPart = (PACKAGE_ID, params) => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/queryPart/${PACKAGE_ID}`, { params });
// 项目规则查询
export const queryDetail = (PACKAGE_ID, params) => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/queryDetail/${PACKAGE_ID}`, { params });
// 替换备件信息查询
export const queryPartReplcae = (PACKAGE_ID, params) => axios.get(`${SERVER.DMSCLOUD_REPAIR}/ServicePackage/queryPartReplcae/${PACKAGE_ID}`, { params });
